import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/login",
    method: "post",
    data: data
  });
}

export function getInfo(params) {
  return request({
    url: "/index",
    method: "get",
    params
  });
}

export function logout(params) {
  return request({
    url: "/logout",
    method: "get",
    params
  });
}

export function info(params) {
  return request({
    url: "/info",
    method: "get",
    params
  });
}
export function get_super_role(params) {
  return request({
    url: "/get_super_role",
    method: "get",
    params
  });
}
